#****************************************************************************
#
# COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2010
#
# This file is part of Maxsi Technology.
#
#****************************************************************************

# Just list all the folders here till we get the automatic detection code working.
all:
	+$(MAKE) -C MaxsiEngine all
	+$(MAKE) -C MaxsiDistribution all
	+$(MAKE) -C MaxsiInstaller all
	+$(MAKE) -C MaxsiWindowSample all
	+$(MAKE) -C MaxsiImaginationLand all
	+$(MAKE) -C MaxsiGameEngine all

clean:
	+$(MAKE) -C MaxsiEngine clean
	+$(MAKE) -C MaxsiDistribution clean
	+$(MAKE) -C MaxsiInstaller clean
	+$(MAKE) -C MaxsiWindowSample clean
	+$(MAKE) -C MaxsiImaginationLand clean
	+$(MAKE) -C MaxsiGameEngine clean

me a:
	@test dummy

sandwich:	
	@sh ./bashtest.sh

# Detect whether we are running 32-bit or 64-bit or whatever.
#LBITS := $(shell getconf LONG_BIT)

# We are saving our final binaries to this directory:
#BINDIR = bin$(LBITS)

# Search for all the makefiles in the sub directories.
#MakeFiles := $(wildcard */Makefile)

# Make the all rule depend on the rules for each makefile
#all: $(MakeFiles)

# Use a widcard '%' to refine a common rule for each makefile, this common rule is:
# If the makefile is newer than the file it produces or the file doesn't exist,
# then build the makefile! # 
#*/Makefile: $(BINDIR)/$<
#	+$(MAKE) -C $(subst /Makefile,,$@)

